<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="${initParam.domain}">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap -->
    <link href="static/css/bootstrap.min.css" rel="stylesheet">
    <title>编辑参考</title>
</head>
<body>
    <div class="container">
    <form:form modelAttribute="refer" action="refer/add" method="post">
        <p class="form-group">
            <label>连接锚点</label>
            <form:input path="anchor" size="100" class="form-control" />
        </p>
        <p class="form-group">
            <label>连接地址</label>
            <form:input path="url" type="url" size="100" class="form-control" />
        </p>
        <p class="form-group">
            <label>状态</label>
            <form:select path="status" >
                <option value="0">请选择</option>
                <option value="1"<c:if test="${refer.status eq '1'}"> selected="selected"</c:if>>正常</option>
                <option value="2"<c:if test="${refer.status eq '2'}"> selected="selected"</c:if>>锁定</option>
                <option value="3"<c:if test="${refer.status eq '3'}"> selected="selected"</c:if>>异常</option>
                <option value="4"<c:if test="${refer.status eq '4'}"> selected="selected"</c:if>>冰封</option>
            </form:select>
        </p>
        <form:hidden path="id"/>
        <input type="hidden" name="article" value="${articleId}"/>
       <button type="submit" class="btn btn-default">提交 </button>
    </form:form>
    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="static/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="static/js/bootstrap.min.js"></script>
</body>
</html>